package cn.zhl.设计模式.工厂;

import cn.zhl.设计模式.工厂.impl.abstractfactroy.BJfactroy;

import java.util.Calendar;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2021-03-05 19:54
 **/
public class TestMain {
	public static void main(String[] args) {
//		OrderPizza op = new BJOrderPizza();
//		OrderPizza op = new LDOrderPizza();
//		BasicPizza pizza = op.create("cheese");
//		System.out.println(pizza);

//		抽象工厂模式测试
		PizzaFactory pf = new BJfactroy();
		BasicPizza pizza = pf.create("cheese");
		System.out.println(pizza);
	}
}
